package se.lnu.axez.tools;

import java.io.Serializable;

import se.lnu.axez.TriMesh;

public class SerializedTriMesh extends TriMesh implements Serializable {
	private static final long serialVersionUID = -9053729552380387026L;
	
	private final float[] mVertices;
	private final float[] mNormals;
	private final float[] mUV;
	private final int mIndexCount;
	
	SerializedTriMesh(float[] mVertices, float[] mNormals, float[] mUV, int mIndexCount) {
		this.mVertices = mVertices;
		this.mNormals = mNormals;
		this.mUV = mUV;
		this.mIndexCount = mIndexCount;
	}

	@Override
	protected float[] getVertices() {
		return mVertices;
	}

	@Override
	protected float[] getNormals() {
		return mNormals;
	}

	@Override
	protected float[] getUV() {
		return mUV;
	}

	@Override
	protected int getIndexCount() {
		return mIndexCount;
	}
}
